package com.zn.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.math.BigDecimal;

/**
 * @author YinJiaWei
 * @version 2018/10/26 20:39
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class AccountInfo {
    /**
     * 返回客户编号（Int类型）和客户连接会话的cookie， bal为资金余额（Double类型），aval 为可用资金金额（Double类型）, mobile为客户手机号(UInt64类型)，"cashintxt"："客户入金提示"，bankid为客户银行卡开户行联行号(UInt64类型)，aname 为银行卡的开户人姓名（字符串类型）， account为银行卡卡号(UInt64类型) ，banklock为绑定标志(UInt，0为未绑定，1为已绑定， 已绑定后，银行卡不能再修改)
     * {"id":1,"uid":133562369,"bal":30000.00,"aval":30000.00,"mobile":0,"name":"还好先生","cnt":1,"bankid":0,"aname":"","account":0,"banklock":0,"cashintxt":"    ","ret":0,"url":""}
     */
    @JsonProperty("id")
    private Integer id;
    @JsonProperty("uid")
    private Integer uid;
    @JsonProperty("bal")
    private BigDecimal bal;
    @JsonProperty("aval")
    private BigDecimal aval;
    @JsonProperty("mobile")
    private Long mobile;
    @JsonProperty("name")
    private String name;

    private String cookie;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public BigDecimal getBal() {
        return bal;
    }

    public void setBal(BigDecimal bal) {
        this.bal = bal;
    }

    public BigDecimal getAval() {
        return aval;
    }

    public void setAval(BigDecimal aval) {
        this.aval = aval;
    }

    public Long getMobile() {
        return mobile;
    }

    public void setMobile(Long mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCookie() {
        return cookie;
    }

    public void setCookie(String cookie) {
        this.cookie = cookie;
    }

    @Override
    public String toString() {
        return "AccountInfo{" +
                "id=" + id +
                ", uid=" + uid +
                ", bal=" + bal +
                ", aval=" + aval +
                ", mobile=" + mobile +
                ", name='" + name + '\'' +
                ", cookie='" + cookie + '\'' +
                '}';
    }
}
